pp108 : onbeforerowinsert Event

onbeforerowinsert Event


This event is fired before a row is inserted into the table, as a result of a cut or a copy operation.

Syntax

Inline HTML

<TABLE id=tableID onbeforerowinsert="handler()"...>

Event property

tableID.onbeforerowinsert = handler


Event Information

To invoke

Select the option Cut / Copy from the shortcut menu and select Insert on any other row in the grid.

Default Action

Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property

Description

anchorRow

Read-only. Object that denotes the row before which the cut / copied row is to be inserted.

isCut

Read-only. Boolean that denotes the type of operation.

  • true - Row is cut from the old position.
  • false - Row is copied from the old position.

referenceRow

Read-only. Object that contains a row to be inserted.

returnValue

Boolean that sets or retrieves the return value from the event.

  • true - Row is cut / copied.
  • false - Row is not cut / copied.


See Also


grid